/**
 *  @method GET
 *    @param params
 *  @method POST
 *    @param data
 */
import { request } from '@/utils'

export const getLogin = (data) => {
  return request.post('/api/login', data)
}

export const getUserInfo = (params) => {
  return request.get('/api/userInfo', params)
}

export default { getLogin, getUserInfo }
